package day2

import Utils.SparkUtils


object Test1 {
  def main(args: Array[String]): Unit = {
    val sc = SparkUtils.getSparkContext(4, "ceshi")
    val rdd1 = sc.makeRDD(List(1, 2, 3, 4, 5, 6, 7, 8, 9), 3)
    val value = rdd1.map(v => v * 2)
    value.saveAsTextFile("hdfs://hadoop10:9000/out112")

    sc.stop()
  }
}
